package com.huangliusong.desigin.pattern.structual.flyweight;

/**
 * @author huangliusong
 * @since 2018/10/12
 * {@link }
 */
public class Test {
    private  static final String departments[]={"RD","Q","PM"};

    public static void main(String[] args) {
        for (int i=0;i<10;i++){
            String department=departments[(int)(Math.random()*departments.length)];
            Manager manager= (Manager) EmployeeFactory.getManager(department);
            manager.report();
        }
    }
}
